function setQueryInfo4Subject() {
	return {
	// fields : [{fieldName:'subjectCode',fieldValue:'in',condition:'likeaic'}]
		orderByProps : {subjectCode:"desc",subjectName:"asc"},
		groupByProps : ["subjectCode","subjectName"]
	};
}

function beforeNew4Subject(){
	ffff();
	return true;
}

function beforeSelectRowFunc4Subject(rowId,event){
	ffff();
	return true;
}

function ffff(){
	var ids = $('#tableSubject').jqGrid("getRowIdsByModified");
	if(ids.length>0){
		var flag = window.confirm("有数据被修改是否保存？");
		if(!flag){
			$('#tableSubject').jqGrid("restoreRowDataByIds",ids);
		}else{
			$('#tableSubject').jqGrid("saveGridDatas");
		}
	}
}